part of 'index.dart';

class OrderRespository extends LoadingModel<OrderAuditObject> {
  int pageIndex = 1; // 默认第一页
  bool _hasMore = true; // 是否还存在下一页
  bool forceRefresh = false;

  String stype; // 类别ID
  OrderRespository({this.stype = '-1'});

  @override
  // TODO: implement hasMore
  bool get hasMore => _hasMore;

  @override
  Future<bool> loadData([bool isLoadMoreAction = false]) async {
    var isSuccess = false;

    return isSuccess;
  }

  @override
  Future<bool> refresh([bool notifyStateChanged = false]) async {
    _hasMore = true;
    pageIndex = 1;
    forceRefresh = !notifyStateChanged;
    var result = await super.refresh(notifyStateChanged);
    forceRefresh = false;
    return result;
  }
}
